#ifndef FILERECEIVEMANAGER_H
#define FILERECEIVEMANAGER_H

#include <QMap>

#include "Manager.h"
#include "Key.h"

class FileReceiver;
class FileReceiveManager : public Manager
{
	public:
		FileReceiveManager();

	protected:
		void AddTask(void *task);

	protected slots:
		void DeleteTask(void *task);
		void OnComplete();

	private:
		QMap<Key, FileReceiver *> _taskMap;

	signals:
		void sigFileReceiving(Key &key, int size);
};

#endif // FILERECEIVEMANAGER_H
